/*
 * $Id: CodeDetailsObject.java,v 1.4 2009/07/24 18:22:59 oliver Exp $
 * 
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 * 
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */
package com.ge.healthcare.autosc.ui.pojo;

import com.ge.healthcare.autosc.common.ASCUtil;
import com.ge.healthcare.autosc.common.database.pojo.CfgCodeDetails;

public abstract class CodeDetailsObject implements CodeDetailsObjectI {
	private String codeName;
	private Long codeId;
	private String codeDesc;
	public void loadCodeDetails(CfgCodeDetails codeDetails) {
		if (!ASCUtil.isNullOrEmptyObject(codeDetails)) {
			this.codeName = codeDetails.getCodeName();
			this.codeDesc = codeDetails.getCodeDesc();
		}
		
	}
	/**
	 * @return the codeName
	 */
	public String getCodeName() {
		return codeName;
	}

	/**
	 * @param codeName the codeName to set
	 */
	public void setCodeName(String codeName) {
		this.codeName = codeName;
	}

	/**
	 * @return the codeDesc
	 */
	public String getCodeDesc() {
		return codeDesc;
	}

	/**
	 * @param codeDesc the codeDesc to set
	 */
	public void setCodeDesc(String codeDesc) {
		this.codeDesc = codeDesc;
	}
	/**
	 * Return the value of the CODE_ID column.
	 * 
	 * @return CfgCodeDetails
	 */
	public Long getCodeId() {
		return this.codeId;
	}

	/**
	 * Set the value of the CODE_ID column.
	 * 
	 * @param cfgCodeDetails
	 */
	public void setCodeId(Long codeId) {
		this.codeId = codeId;
	}
}
